<?php /*a:3:{s:66:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\pointprod\index.html";i:1591758938;s:64:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\public\header.html";i:1571626691;s:69:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\public\admin_items.html";i:1566788179;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>DSShop单店铺商城系统后台</title>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
        <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
        <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>

        <script type="text/javascript">
            var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
            var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
            var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
            var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
            var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
        </script>
    </head>
    <body>
        <div id="append_parent"></div>
        <div id="ajaxwaitid"></div>







<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>礼品管理</h3>
                <h5></h5>
            </div>
            <?php if($admin_item): ?>
<ul class="tab-base ds-row">
    <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): ?>
    <li><a href="<?php echo htmlentities($item['url']); ?>" <?php if($item['name'] == $curitem): ?>class="current"<?php endif; ?>><span><?php echo htmlentities($item['text']); ?></span></a></li>
    <?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
<?php endif; ?>
        </div>
    </div>

    <form method="get" name="formSearch">
        <div class="ds-search-form">
            <dl>
                <dt><?php echo htmlentities(lang('admin_pointprod_goods_name')); ?></dt>
                <dd><input type="text" name="pg_name" id="pg_name" class="txt" value='<?php echo htmlentities(app('request')->get('pg_name')); ?>'></dd>
                <dd>
                    <select name="pg_state">
                        <option value="" ><?php echo htmlentities(lang('ds_state')); ?></option>
                        <option value="show" <?php if(app('request')->get('pg_state') == 'show'): ?>selected=selected<?php endif; ?>><?php echo htmlentities(lang('admin_pointprod_show_up')); ?></option>
                        <option value="nshow" <?php if(app('request')->get('pg_state') == 'nshow'): ?>selected=selected<?php endif; ?>><?php echo htmlentities(lang('admin_pointprod_show_down')); ?></option>
                        <option value="commend" <?php if(app('request')->get('pg_state') == 'commend'): ?>selected=selected<?php endif; ?>><?php echo htmlentities(lang('ds_recommend')); ?></option>
                    </select>
                </dd>
            </dl>
            <div class="btn_group">
                 <a href="javascript:document.formSearch.submit();" class="btn " title="<?php echo htmlentities(lang('ds_query')); ?>"><?php echo htmlentities(lang('ds_query')); ?></a>
                 <a href="<?php echo url('Pointprod/index'); ?>" class="btn btn-default" title="<?php echo htmlentities(lang('ds_cancel')); ?>"><?php echo htmlentities(lang('ds_cancel')); ?></a>
            </div>
        </div>
    </form>
    
    <div class="explanation" id="explanation">
        <div class="title" id="checkZoom">
            <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
            <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
        </div>
        <ul>
            <li><?php echo htmlentities(lang('pointprod_help1')); ?></li>
        </ul>
    </div>
        <table class="ds-default-table">
            <thead>
            <tr class="thead">
                <th class="w24">&nbsp;</th>
                <th class="w48">&nbsp;</th>
                <th class="w300"><?php echo htmlentities(lang('admin_pointprod_goods_name')); ?></th>
                <th class="w60"><?php echo htmlentities(lang('admin_pointprod_goods_points')); ?></th>
                <th class="w60"><?php echo htmlentities(lang('admin_pointprod_goods_price')); ?></th>
                <th class="w60"><?php echo htmlentities(lang('admin_pointprod_goods_storage')); ?></th>
                <th class="w60"><?php echo htmlentities(lang('admin_pointprod_goods_view')); ?></th>
                <th class="w60"><?php echo htmlentities(lang('admin_pointprod_salenum')); ?></th>
                <th class="w60"><?php echo htmlentities(lang('admin_pointprod_show_up')); ?></th>
                <th class="w60"><?php echo htmlentities(lang('ds_recommend')); ?></th>
                <th><?php echo htmlentities(lang('ds_handle')); ?></th>
            </tr>
            </thead>
            <tbody>
            <?php if(!(empty($prod_list) || (($prod_list instanceof \think\Collection || $prod_list instanceof \think\Paginator ) && $prod_list->isEmpty()))): if(is_array($prod_list) || $prod_list instanceof \think\Collection || $prod_list instanceof \think\Paginator): if( count($prod_list)==0 ) : echo "" ;else: foreach($prod_list as $key=>$v): ?>
            <tr class="hover">
                <td><input type="checkbox" name="pg_id[]" value="<?php echo htmlentities($v['pgoods_id']); ?>" class="checkitem"></td>
                <td class="picture"><div class="size-44x44"><span class="thumb size-44x44"><i></i><img src="<?php echo htmlentities($v['pgoods_image_small']); ?>" onload="javascript:ResizeImage(this,44,44);"/></span></div></td>
                <td><a href="<?php echo url('home/Pointprod/pinfo',['id'=>$v['pgoods_id']]); ?>" target="_blank" ><?php echo htmlentities($v['pgoods_name']); ?></a></td>
                <td class="align-center"><?php echo htmlentities($v['pgoods_points']); ?></td>
                <td class="align-center"><?php echo htmlentities($v['pgoods_price']); ?></td>
                <td class="align-center"><?php echo htmlentities($v['pgoods_storage']); ?></td>
                <td class="align-center"><?php echo htmlentities($v['pgoods_view']); ?></td>
                <td class="align-center"><?php echo htmlentities($v['pgoods_salenum']); ?></td>
                <td class="align-center power-onoff">
                    <?php if($v['pgoods_show'] == '0'): ?>
                    <a href="JavaScript:void(0);" class=" disabled" ajax_branch='pgoods_show' ds_type="inline_edit" fieldname="pgoods_show" fieldid="<?php echo htmlentities($v['pgoods_id']); ?>" fieldvalue="0" title="<?php echo htmlentities(lang('ds_editable')); ?>"><img src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/treetable/transparent.gif"></a>
                    <?php else: ?>
                    <a href="JavaScript:void(0);" class=" enabled" ajax_branch='pgoods_show' ds_type="inline_edit" fieldname="pgoods_show" fieldid="<?php echo htmlentities($v['pgoods_id']); ?>" fieldvalue="1" title="<?php echo htmlentities(lang('ds_editable')); ?>"><img src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/treetable/transparent.gif"></a>
                    <?php endif; ?>
                <td class="align-center yes-onoff">
                <?php if($v['pgoods_commend'] == '0'): ?>
                    <a href="JavaScript:void(0);" class=" disabled" ajax_branch='pgoods_commend' ds_type="inline_edit" fieldname="pgoods_commend" fieldid="<?php echo htmlentities($v['pgoods_id']); ?>" fieldvalue="0" title="<?php echo htmlentities(lang('ds_editable')); ?>"><img src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/treetable/transparent.gif"></a>
                    <?php else: ?>
                    <a href="JavaScript:void(0);" class=" enabled" ajax_branch='pgoods_commend' ds_type="inline_edit" fieldname="pgoods_commend" fieldid="<?php echo htmlentities($v['pgoods_id']); ?>" fieldvalue="1" title="<?php echo htmlentities(lang('ds_editable')); ?>"><img src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/images/treetable/transparent.gif"></a>
                    <?php endif; ?></td>
                <td class="w72 align-center">
                    <a href="<?php echo url('Pointprod/prod_edit',['pg_id'=>$v['pgoods_id']]); ?>" class="dsui-btn-edit"><i class="iconfont"></i><?php echo htmlentities(lang('ds_edit')); ?></a>
                    <a href="javascript:submit_delete(<?php echo htmlentities($v['pgoods_id']); ?>)" class="dsui-btn-del"><i class="iconfont"></i><?php echo htmlentities(lang('ds_del')); ?></a>
                </td>
            </tr>
            <?php endforeach; endif; else: echo "" ;endif; else: ?>
            <tr class="no_data">
                <td colspan="11"><?php echo htmlentities(lang('ds_no_record')); ?></td>
            </tr>
            <?php endif; ?>
            </tbody>
            <tfoot>
            <?php if(!(empty($prod_list) || (($prod_list instanceof \think\Collection || $prod_list instanceof \think\Paginator ) && $prod_list->isEmpty()))): ?>
            <tr>
                <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
                <td colspan="16" id="dataFuncs"><label for="checkallBottom"><?php echo htmlentities(lang('ds_select_all')); ?></label>
                    &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span><?php echo htmlentities(lang('ds_del')); ?></span></a>
                </td>
            </tr>
            <?php endif; ?>
            </tfoot>
        </table>
        <?php echo $show_page; ?>
</div>
<script type="text/javascript" src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/jquery.edit.js" charset="utf-8"></script>
<script type="text/javascript">
    function submit_delete(ids_str) {
        _uri = ADMINSITEURL + "/Pointprod/prod_drop.html?pg_id=" + ids_str;
        dsLayerConfirm(_uri, '<?php echo htmlentities(lang('ds_ensure_del')); ?>');
    }
</script>